function submitPage(obj, type) {
	var ids = "";
	$("[name='dataid']").each(function() {
		ids += $(this).attr("dataid") + ",";
	});
	API.icdDiseaseSectionBlackWhiteSubmitPage({
		"ids" : ids
	}, function(res) {
		UTIL.releaseButton(obj);
		if (res.code == '0') {
			window.location.reload();
			UTIL.releaseButton(obj);
			return true;
		} else {
			alert(res.desc);
		}
	});
}

function changeFlag(obj,id){
	var flag = '2';
	if($(obj).is(':checked') == false){
		flag = '3';
	}else{
		flag = '2';
	}
	API.icdDiseaseSectionBlackWhiteChangeFlag({
		"id" : id ,"flag": flag
	}, function(res) {
		UTIL.releaseButton(obj);
		if (res.code == '0') {
			window.location.reload();
			UTIL.releaseButton(obj);
			return true;
		} else {
			alert(res.desc);
		}
	});
}